import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import App from './App.vue'
import router from './router/index'
import components from './components/index';
import './scss/index.scss'

import axios from '@/http/axios.js';

Vue.prototype.$http = axios;

Vue.use(ElementUI);

Vue.config.productionTip = false

components.forEach(component => {
  Vue.component(component.name, component)
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
